package com.example.webdemo.service;

import com.example.webdemo.model.PhoneCode;
import com.example.webdemo.model.UserInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

/**
 * @description:  UserInfoService
 * @author zp
 * @date: 2023/7/31 19:08
 */
public interface UserInfoService {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

    UserInfo selectByPhone(String phone);

    UserInfo selectByToken(String token);

    int updateByPhone(String token, String userPhone);

    boolean login(PhoneCode phoneCode);
}
